﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000723 RID: 1827
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetLevelRewardTakenListScRsp : IMessage<GetLevelRewardTakenListScRsp>, IMessage, IEquatable<GetLevelRewardTakenListScRsp>, IDeepCloneable<GetLevelRewardTakenListScRsp>, IBufferMessage
	{
		// Token: 0x17001766 RID: 5990
		// (get) Token: 0x06005231 RID: 21041 RVA: 0x000DEFE9 File Offset: 0x000DD1E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetLevelRewardTakenListScRsp> Parser
		{
			get
			{
				return GetLevelRewardTakenListScRsp._parser;
			}
		}

		// Token: 0x17001767 RID: 5991
		// (get) Token: 0x06005232 RID: 21042 RVA: 0x000DEFF0 File Offset: 0x000DD1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetLevelRewardTakenListScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001768 RID: 5992
		// (get) Token: 0x06005233 RID: 21043 RVA: 0x000DF002 File Offset: 0x000DD202
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetLevelRewardTakenListScRsp.Descriptor;
			}
		}

		// Token: 0x06005234 RID: 21044 RVA: 0x000DF009 File Offset: 0x000DD209
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetLevelRewardTakenListScRsp()
		{
		}

		// Token: 0x06005235 RID: 21045 RVA: 0x000DF01C File Offset: 0x000DD21C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetLevelRewardTakenListScRsp(GetLevelRewardTakenListScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.levelRewardTakenList_ = other.levelRewardTakenList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005236 RID: 21046 RVA: 0x000DF052 File Offset: 0x000DD252
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetLevelRewardTakenListScRsp Clone()
		{
			return new GetLevelRewardTakenListScRsp(this);
		}

		// Token: 0x17001769 RID: 5993
		// (get) Token: 0x06005237 RID: 21047 RVA: 0x000DF05A File Offset: 0x000DD25A
		// (set) Token: 0x06005238 RID: 21048 RVA: 0x000DF062 File Offset: 0x000DD262
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700176A RID: 5994
		// (get) Token: 0x06005239 RID: 21049 RVA: 0x000DF06B File Offset: 0x000DD26B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> LevelRewardTakenList
		{
			get
			{
				return this.levelRewardTakenList_;
			}
		}

		// Token: 0x0600523A RID: 21050 RVA: 0x000DF073 File Offset: 0x000DD273
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetLevelRewardTakenListScRsp);
		}

		// Token: 0x0600523B RID: 21051 RVA: 0x000DF084 File Offset: 0x000DD284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetLevelRewardTakenListScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.levelRewardTakenList_.Equals(other.levelRewardTakenList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600523C RID: 21052 RVA: 0x000DF0D4 File Offset: 0x000DD2D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.levelRewardTakenList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600523D RID: 21053 RVA: 0x000DF121 File Offset: 0x000DD321
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600523E RID: 21054 RVA: 0x000DF129 File Offset: 0x000DD329
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600523F RID: 21055 RVA: 0x000DF134 File Offset: 0x000DD334
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			this.levelRewardTakenList_.WriteTo(ref output, GetLevelRewardTakenListScRsp._repeated_levelRewardTakenList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005240 RID: 21056 RVA: 0x000DF184 File Offset: 0x000DD384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.levelRewardTakenList_.CalculateSize(GetLevelRewardTakenListScRsp._repeated_levelRewardTakenList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005241 RID: 21057 RVA: 0x000DF1D8 File Offset: 0x000DD3D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetLevelRewardTakenListScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.levelRewardTakenList_.Add(other.levelRewardTakenList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005242 RID: 21058 RVA: 0x000DF225 File Offset: 0x000DD425
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005243 RID: 21059 RVA: 0x000DF230 File Offset: 0x000DD430
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 104U && num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.levelRewardTakenList_.AddEntriesFrom(ref input, GetLevelRewardTakenListScRsp._repeated_levelRewardTakenList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002035 RID: 8245
		private static readonly MessageParser<GetLevelRewardTakenListScRsp> _parser = new MessageParser<GetLevelRewardTakenListScRsp>(() => new GetLevelRewardTakenListScRsp());

		// Token: 0x04002036 RID: 8246
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002037 RID: 8247
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04002038 RID: 8248
		private uint retcode_;

		// Token: 0x04002039 RID: 8249
		public const int LevelRewardTakenListFieldNumber = 13;

		// Token: 0x0400203A RID: 8250
		private static readonly FieldCodec<uint> _repeated_levelRewardTakenList_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x0400203B RID: 8251
		private readonly RepeatedField<uint> levelRewardTakenList_ = new RepeatedField<uint>();
	}
}
